</head>
<body>
<div class="f-sep10"></div>
<div class="f-sep10"></div>
<div class="m-hd m-tabs">
  <h2 class="u-tt">会员中心设置</h2>
  <ul id="tabs">
    <li> <a class="z-crt" href="#tab1"> 基本信息</a></li>
    <li> <a href="#tab2"> 注册设置</a></li>
    <li> <a href="#tab3"> 登录设置</a></li>
    <li> <a href="#tab4"> 邮件设置</a></li>
  </ul>
</div>
<div class="f-sep10"></div>
<div class="m-form">
<form name="xxx" action="{$url(user_system/config_save)}" method="post" id="form">
  <fieldset>
    <div id="tab1">
      <div class="formitm">
        <label class="lab" >会员中心名称：</label>
        <div class="ipt">
          <input name="info_title" type="text" class="u-ipt" value="{$info.info_title}" />
          <span class="Validform_checktip">显示在网站头部的标题信息</span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >登录页欢迎语句：</label>
        <div class="ipt">
          <input name="info_welcome" type="text" class="u-ipt" value="{$info.info_welcome}" />
          <span class="Validform_checktip">针对SEO优化的标题后缀</span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >会员中心关键词：</label>
        <div class="ipt">
          <input name="info_keywords" type="text" class="u-ipt" value="{$info.info_keywords}" />
          <span class="Validform_checktip">针对搜索引擎的会员中心关键词</span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >会员中心描述：</label>
        <div class="ipt">
          <textarea name="info_description" class="u-itt" >{$info.info_description}</textarea>
          <span class="Validform_checktip"></span> </div>
      </div>
    </div>
    <div id="tab2">
      <div class="formitm">
        <label class="lab" >注册协议：</label>
        <div class="ipt">
          <textarea name="reg_agreement" class="u-itt" >{$info.reg_agreement}</textarea>
          <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >注册用户名过滤：</label>
        <div class="ipt">
          <textarea name="reg_user_filter" class="u-itt" >{$info.reg_user_filter}</textarea>
          <span class="Validform_checktip">请用逗号分割，包含部分匹配</span> </div>
      </div>
    </div>
    <div id="tab3">
      <div class="formitm">
        <label class="lab" >登录IP屏蔽：</label>
        <div class="ipt">
          <textarea name="login_shield_ip" class="u-itt" >{$info.login_shield_ip}</textarea>
          <span class="Validform_checktip">一行一个IP段，每行用|分割IP段，不分割为单IP</span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >密码找回邮件标题：</label>
        <div class="ipt">
          <input name="login_forget_title" type="text" class="u-ipt" value="{$info.login_forget_title}">
          <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >密码找回邮件内容：</label>
        <div class="ipt">
          <textarea name="login_forget_content" class="u-itt">{$info.login_forget_content}</textarea>
          <span class="Validform_checktip"></span> </div>
      </div>
    </div>
    <div id="tab4">
      <div class="formitm">
        <label class="lab" >SMTP服务器地址：</label>
        <div class="ipt">
          <input name="smtp_host" type="text" class="u-ipt" value="{$info.smtp_host}">
          <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >SMTP端口：</label>
        <div class="ipt">
          <input name="smtp_port" type="text" class="u-ipt" value="{$info.smtp_port}">
          <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >SMTP验证：</label>
        <div class="ipt">
          <input type="radio" name="smtp_auth" value="1" <?php if($info['smtp_auth']==1){ ?>  checked="checked" <?php } ?> />
          <label>开启</label>
          <input type="radio" name="smtp_auth" value="0" <?php if($info['smtp_auth']==0){ ?>  checked="checked" <?php } ?> />
          <label>关闭</label>
        </div>
      </div>
      <div class="formitm">
        <label class="lab" >邮箱帐号：</label>
        <div class="ipt">
          <input name="smtp_username" type="text" class="u-ipt" value="{$info.smtp_username}">
          <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >邮箱密码：</label>
        <div class="ipt">
          <input name="smtp_password" type="text" class="u-ipt" value="{$info.smtp_password}">
          <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >发件人姓名：</label>
        <div class="ipt">
          <input name="smtp_form_name" type="text" class="u-ipt" value="{$info.smtp_form_name}">
          <span class="Validform_checktip"></span> </div>
      </div>
    </div>
    
    <div class="formitm formitm-1">
      <button class="u-btn" id="submit" type="submit">保存修改</button>
      <button class="u-btn u-btn-c4" id="reset" type="button">重置</button>
      <span id="tip" class="load"></span> </div>
  </fieldset>
</form>
</div>
</body>
<script>
var tpl_val = new function(){}; 
Do.ready('base','form','tabs','tip', function() {
	saveform();
	tabs();
});
</script>